<?php
	$content = "" ;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>New Editor :: Joo8111</title>
	<script type="text/javascript" src='js/prototype1.6.js'></script>
	<script type='text/javascript' src='js/editor.js'></script>
	<script type="text/javascript">
	
		var editor ;
		function init() {
			editor = new Editor('htmlBox') ;
		} ;
		window.onload = init ;
	
	</script>
	<link rel="stylesheet" href="css/editor.css" media="screen" />

</head>
<body>

<form id='editor' method='post' action="write_action.php">
	<fieldset>
		<legend>Editor</legend>
		<div id='editmenu'>
			<img id='btnBold' src='img/text_button_bold.png' class='button' alt='Bold' title='Bold' />
			<img id='btnItalic' src='img/text_button_italic.png' class='button' alt='Italic' title='Italic' />
			<img id='btnUnderline' src='img/text_button_underline.png' class='button' alt='Underline' title='Underline' />
			<img id='btnMiddleline' src='img/text_button_middleline.png' class='button' alt='MiddleLine' title='MiddleLine' />
			<img id='btn' src='img/text_button_color.png' class='button' alt='Color' title='Color' />
			<img src='img/text_button_bgcolor.png' class='button' alt='Background Color' title='Background Color' />
			<input id='btnLeft' type='button' class='button' value='L' />
			<input id='btnCenter' type='button' class='button' value='C' />
			<input id='btnRight' type='button' class='button' value='R' />
			<input id='btnIndent' type='button' class='button' value='IN' />
			<input id='btnOutdent' type='button' class='button' value='OUT' />
			<input id='btnChangeMode' type='button' class='button' value='Editor' />
		</div>
		<textarea id='htmlBox' name='htmlBox'><?php echo ($content) ; ?></textarea>
	</fieldset>
	<input type='hidden' id='content' name='content' />
	<div>
		<input id='buttonSubmit' type='submit' value='Save' />
	</div>
</form>

</body>
</html>

